package com.xieh.webmagic.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 谢辉
 * @Classname MybatisPlusConfig
 * @Description TODO
 * @Date 2020/11/20 10:45
 * 配置MybatisPlus分页插件
 */
@Configuration
public class MybatisPlusConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
